/**
 *   文物 model
 *   private Integer objId; 主键 int
 *   private String author; 撰稿人
 *   private String className; 分类(作废)
 *   private String objProdarea; 细分类(作废)
 *   private String objNo; 文物编号
 *   private String objName; 文物名称
 *   private String generateEra; 文物年代
 *   private Integer eraBegin; 起始年代 int
 *   private Integer eraEnd;终止年代 int
 *   private String description;正文内容 clob
 *   private Integer objNumber;正文字数 int(作废)
 *   private String note;备注
 *   private String keywords;关键词
 *   private String docAuthor;公元纪年
 *   private String era;作者
 *   private String showLocation;展出地点
 *   private Date showFrom;展出起始时间 date
 *   private Date showTo;展出截止时间 date
 *   private String material;材质
 *   private String colorMode;用色方式
 *   private String objsize;尺寸
 *   private String introduction;介绍 clob
 *   private String origin;产地
 *   private String unearthed;出地时间
 *   private String classiii;种类
 *   private String grade;级别
 *   private String objAuthor;文物作者
 *   private String classa;分类
 *   private Date lastUpdate;最后更新时间 date
 *   private Integer notesnum;
 *   private String notesstr;
 */
Ext.define('DCApp.model.Relic', {
    extend: 'DCApp.model.Base',
    idProperty: 'objId',
    fields: [    
        {name: 'objId', type : 'int', text : '文物ID'},
        {name: 'objAuthor', text : '作者(窑口)'},
        {name: 'classa', text : '分类'},
        {name: 'objNo', text : '文物编号'},
        {name: 'objName', text : '文物名称'},
        {name: 'grade', text : '级别'},
        {name: 'objNumber', type : 'int', text : '正文字数'},
        {name: 'author', text : '撰稿人'},
        {name: 'className'},
        {name: 'objProdarea'},
        {name: 'generateEra'},
        {name: 'eraBegin',type:'int'},
        {name: 'eraEnd',type:'int'},
        {name: 'description'},
        {name: 'note'},
        {name: 'keywords'},
        {name: 'docAuthor'},
        {name: 'era'},        
        {name: 'showLocation'},
        {name: 'showFrom', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'showTo', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'material'},
        {name: 'colorMode'},
        {name: 'objsize'},
        {name: 'introduction'},
        {name: 'origin'},
        {name: 'unearthed'},        
        {name: 'classiii'},
        {name: 'lastUpdate', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'notesnum'},
        {name: 'notesstr'}
    ],
    manyToMany:['Image','Thesis','Doc']
});
 
 
